# -*- ruby -*-
#
# Stechec project is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# The complete GNU General Public Licence Notice can be found as the
# `NOTICE' file in the root directory.
#
# Copyright (C) 2005, 2006 Prologin
#

PKGDATADIR = "@prefix@/share/@PACKAGE@"
PKGLIBDIR = "@prefix@/lib/@PACKAGE@"
PKGRUBYDIR = "@prefix@/lib/@PACKAGE@/ruby"

def get_file_path(file, install_prefix)
  src_path = Pathname.new(File.dirname($0))
  if File.exist?(src_path + file)
    (src_path + file).to_s
  else
    install_prefix + "/" + file
  end
end
